// src/main.js
import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "./assets/reset.css";
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import { createPinia } from "pinia";
import router from "./router"; // ✅ 引入路由

const app = createApp(App);
app.use(createPinia());
app.use(router); // ✅ 使用路由
app.use(ElementPlus, {
  locale: zhCn
})
app.mount("#app");
